import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { StatisticDto } from './dto/dashboard.dto';

@Injectable({
  providedIn: 'root',
})
export class DashboardService {
  constructor(private http: HttpClient) {}

  /**
   * 获取统计数据
   */
  statistic() {
    return this.http.get<StatisticDto>('dashboard/statistic');
  }
}
